﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MasterItems.aspx.cs" Inherits="VMS_Web.MasterItems"%>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Master Items</title>
     <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">

    <!-- Bootstrap core CSS -->
    <link href="Content/dist/css/bootstrap.css" rel="stylesheet"/>

    <!-- Custom styles for this template -->
  <%--  <link href="Content/dist/css/navbar-fixed-top.css" rel="stylesheet"/>--%>

  

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->

</head>
<body>
    <form id="form1" runat="server">
        <div class="container">
       <div ID="diverror" class="hidden" runat="server">
       <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        <strong id="messagetodisplay" runat="server"></strong> 
    </div>
            <%-- <div class="container">
                  <div class="well well-sm">
               <h4 class="panel-title" id="h4title" runat="server"></h4>
           </div>--%>
       <div class="panel panel-default">
           <div class="panel-heading">
               <h4 class="panel-title" id="h4title" runat="server"></h4>
           </div>
         <div class="panel-body">
          <div class="form-horizontal col-md-6">
            <div class="control-group">
                <asp:DataGrid ID="grdmasteritemdetails" CssClass="table table-condensed table-responsive" runat="server" AutoGenerateColumns="false" AllowPaging="true" PageSize="10">
                    <Columns>
                        <asp:BoundColumn DataField="Master_Item" ReadOnly="True" HeaderText="Master Type" Visible="false" />
                        <asp:BoundColumn DataField="Item_Value" ReadOnly="True" HeaderText="Item" />
                        <asp:BoundColumn DataField="Desc" ReadOnly="True" HeaderText="Item-Desc " ItemStyle-Wrap="false" />
                        <asp:TemplateColumn HeaderText="Edit">
                            <ItemTemplate>
                                <a class="btn btn-default btn-sm " href='<%#RedirectForEdit(Eval("Master_Item").ToString(),Eval("Item_Value").ToString(),Eval("Desc").ToString())%>'><i class="glyphicon glyphicon-edit"></i></a>
                            </ItemTemplate>
                        </asp:TemplateColumn>

                        <asp:TemplateColumn HeaderText="Delete">
                            <ItemTemplate>
                                <a class="btn btn-default btn-sm" href='<%#RedirectForDelete(Eval("Master_Item").ToString(),Eval("Item_Value").ToString())%>'><i class="glyphicon glyphicon-remove"></i></a>
                            </ItemTemplate>
                        </asp:TemplateColumn>

                    </Columns>
                </asp:DataGrid>
            </div>
            </div>
          <div class="form-horizontal col-md-6">
                <%--<div class="form-group">
                    <label for="txtmastertitemtype" class="col-md-3 control-label">Item Type</label>
                    <div class="col-md-4">
                        <input type="text" class="form-control" id="txtitemtype" placeholder="Enter Master item type" runat="server" />
                    </div>
                </div>--%>
                <div class="form-group">
                    <span class="col-md-4">Item Value</span>
                    <div class="col-md-4">
                        <input type="text" class="form-control" id="txtitemvalue" placeholder="Enter Master item type" runat="server" />
                    </div>
                </div>
                <div class="form-group">
                    <span for="txtmastertitemdesc" class="col-md-4">Item Description</span>
                    <div class="col-md-4">
                        <input type="text" class="form-control" id="txtitemdesc" placeholder="Enter Master description" runat="server" />
                    </div>
                </div>
            </div>
             </div>
           
          <div class="well well-sm">
                <button id="btnAction" value="Add" class="btn btn-default btn-sm" runat="server" onserverclick="btnAction_ServerClick" />
                <button id="btnCancel" type="reset" class="btn btn-default btn-sm" runat="server" onserverclick="btnCancel_ServerClick">Cancel</button>
            </div>
           </div>
                  </div>
       <%-- </div>--%>
   
    </form>
    <script src="Content/dist/js/jquery-2.0.3.min.js"></script>
    <script src="Content/dist/js/bootstrap.min.js"></script>
    <script src="Content/dist/js/scripts.js"></script>
</body>
</html>
